Skip to content

[pull] main from microsoft:main#1156

Merged
pull[bot] merged 50 commits intocode:mainfrom
microsoft:main
Apr 17, 2026
Merged

[pull] main from microsoft:main#1156
pull[bot] merged 50 commits intocode:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 17, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

cwebster-99 and others added 30 commits April 15, 2026 11:02
…n promptsService (#310999)

* Use 'sessionTypes' to filter chat customizations in UI, 'when' only in promptsService

Co-authored-by: Copilot <copilot@github.com>

* update

* correctly handle when from providers

Co-authored-by: Copilot <copilot@github.com>

* fix compile error

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
… editor (#311026)

* Background - use merge-base commit for the left hand side of the diff editor
sessions: add subtle account avatar border

Use the existing command center border tokens for the GitHub profile image so the avatar reads cleanly against active and inactive titlebar chrome.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* build(deps): bump rand from 0.8.5 to 0.9.3 in /cli

Bumps [rand](https://github.com/rust-random/rand) from 0.8.5 to 0.9.3.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/0.9.3/CHANGELOG.md)
- [Commits](rust-random/rand@0.8.5...0.9.3)

---
updated-dependencies:
- dependency-name: rand
  dependency-version: 0.9.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix clippy lint warnings after rand 0.8.5 → 0.9.3 upgrade

Agent-Logs-Url: https://github.com/microsoft/vscode/sessions/8e6151a9-d6c4-42c0-9e9e-e8e384b8ce48

Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Block the MCP servers and Plugins tabs in the chat customizations editor
when their respective access settings are disabled, including via
enterprise policy.

- McpListWidget watches `chat.mcp.access`; shows splash when value is
  `none`. If `policyValue === 'none'`, shows policy-locked message and
  hides the "Open Setting" button.
- PluginListWidget watches `chat.plugins.enabled` with the same
  user/policy distinction.
- Reuse `.mcp-list-widget` root class so the new `.mcp-disabled-state`
  CSS applies to both widgets via a single `.access-disabled` modifier.
- Add Dark/Light fixtures for both widgets in user-disabled and
  policy-locked states (8 new screenshots).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
agentHost: show rich diffs when requesting write confirmations
…s-step

Remove extensions step from onboarding
Adds a pure helper shouldKickOffBackgroundSummarization that gates the
post-render background compaction trigger based on prompt-cache warmth:

- inline + warm cache (toolCallRounds.length > 0): jittered threshold in
  [0.78, 0.82) straddling the historical 0.80 edge.
- inline + cold cache: emergency kick-off at >= 0.90 to keep long-running
  sessions from hitting sync foreground compaction.
- non-inline: unchanged >= 0.80.

The rng is injected via a private field so tests are deterministic and
the warm-only jitter path is exercised without touching Math.random.
Follow-up to #310871: the sidebar entrypoint actions (Agents, Skills,
Instructions, Hooks, MCP Servers, Plugins) still called
selectSectionById after opening the editor, which deep-linked into
the section instead of showing the overview.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add back button to AI customization section screens

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Move back button to left of search box

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Align editor/detail back button position with section back arrow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Top-align section back arrow with editor header back button

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Add fixtures for editor/detail views to verify back-button alignment

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Top-align editor/detail back button to match section arrow

The .editor-header has align-items: center and contains a multi-line title
(name + filename), causing the 26px back button to drift down when centered
in the taller row. Pin it to flex-start so it sits at top of the padding
box, exactly where the section back arrow sits.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Support frames / workers in browser CDP

Co-authored-by: Copilot <copilot@github.com>

* path fix

Co-authored-by: Copilot <copilot@github.com>

* feedback

* Normalize blank URLs

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Update distro commit to cccc9754

Co-authored-by: vs-code-engineering[bot] <122617954+vs-code-engineering[bot]@users.noreply.github.com>
connor4312 and others added 20 commits April 17, 2026 12:06
* agentHost: fix bugs around message handling

- Fix a bug where a sessions were not restored correctly because they
  had in-progress data (that is the move of the `providedSession.isCompleteObs?.get()`)
- Fix a bug where sessions that supported progress streaming would not
  have sendable messages if they were already complete (that is the
	addition of `this._pendingRequests.deleteAndDispose(model.sessionResource);`)
- Fix a bug in the agent host where we didn't provide `onDidStartServerRequest`
  consistently which often prevented multi-client messaging from working
- DRY up some logic and add tests

* comments
…310868)

* Agents tunnels: auto-reconnect with backoff and wake-triggered retry

Tunnel-backed remote agent hosts previously had no auto-reconnect
behavior — on laptop sleep / network drop the tunnel would flip to
Disconnected and stay there until the user manually retried.

This adds a reconnect loop inside TunnelAgentHostContribution:

- Detect Connected→Disconnected transitions for still-cached tunnels
  and schedule an immediate reconnect. Only fires when the entry is
  explicitly Disconnected — if the entry has been removed (e.g. user
  clicked "Remove Remote"), we honour the removal and do not reconnect.
- Exponential backoff on consecutive failures: 1s → 30s cap, up to
  10 attempts, then pause.
- Wake-triggered retry: on browser `online` or tab
  `visibilitychange` → visible, resume any paused reconnects.
  Rate-limited to one resume per 10s so rapid tab toggling can't
  hammer a permanently broken endpoint with unbounded attempt bursts.
- Prune all reconnect state when a tunnel is uncached or the
  contribution is disposed.

* Review comment

Co-authored-by: Copilot <copilot@github.com>

* Telemetry

Co-authored-by: Copilot <copilot@github.com>

* Clean up

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
* Update customization: SKILL.md

* Update customization: commit

* Update customization: SKILL.md

* Update customization: commit

* Update customization: SKILL.md

* Update customization: commit

* Add GitHub Preview Features section to add-policy skill
* Move to InputState instead of metadata on sessions

Cleans up more old patterns with new patterns.

Co-authored-by: Copilot <copilot@github.com>

* feedback

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.3.2...3.4.0)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
* feat: upload commit-to-version mapping for copilot source maps

During the Copilot CI build, after uploading source maps to CDN, also upload
a small JSON file at sourcemaps/{extensionId}/commits/{commitHash}.json that
maps the VS Code commit hash to the patched extension version.

This enables the vscode-errors deminify service to resolve the correct
extension version for Insider builds, where the version is date-patched
(e.g. 0.44.2026041004) and not derivable from the repo alone.

* fix: use no-cache for commit-version mapping blob

The mapping file could change on pipeline reruns, so use
no-cache instead of long-lived cache headers.
* Agents web: Fix for terminals

Co-authored-by: Copilot <copilot@github.com>

* Review comment

Co-authored-by: Copilot <copilot@github.com>

* Fixes

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Only list Copilot SDK sessions that already have Agent Host session data, so sessions created by other Copilot CLI agents are filtered out without creating databases during listing.

(Written by Copilot)
…311095)

The CopilotAgent.getDescriptor() displayName was "Copilot" but should be
"Copilot CLI" to match the well-known CopilotCLISessionType label used
elsewhere. The remote agent host sessions provider uses this displayName
to build the session type label shown in the UI.

(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Terminal: respect auto approve setting for sandbox analyzer

Fixes #309954

* Revert "Terminal: respect auto approve setting for sandbox analyzer"

This reverts commit 50fd140.

* Revert "Revert "Terminal: respect auto approve setting for sandbox analyzer""

This reverts commit 7cc5cca.

* Apply agent network filter when sandbox is enabled

* Use terminal sandbox service for network filter

* Revert command line sandbox analyzer changes

* Remove unused agent sandbox setting IDs

* changes

* Fix terminal sandbox type-only exports

* Update src/vs/platform/networkFilter/test/common/networkFilterService.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Move agent sandbox setting to platform

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
[STACKED] agentHost: correctly rewrite links in markdown for remote files
…y default (#311075)

* agentHost: make 'new terminal' button open a terminal in the remote by default

Adds a new notion of 'default profile overrides' that the sessions app
uses to set the default terminal profile when a remote session is open.

* build
fixes #310748

Co-authored-by: Copilot <copilot@github.com>
@pull pull Bot locked and limited conversation to collaborators Apr 17, 2026
@pull pull Bot added the ⤵️ pull label Apr 17, 2026
@pull pull Bot merged commit 840a3be into code:main Apr 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.